php date plus days

94

Add days to date in PHP -

$date = new DateTime('2020-11-24');
$date->add(new DateInterval("P9D"));

echo $date->format('Y-m-d');

Comments

Submit
0 Comments